package com.uuei.spring;

import com.uuei.spring.bean.Person;
import org.springframework.context.support.ClassPathXmlApplicationContext;

//https://www.bilibili.com/video/BV1gW411W7wy?p=1    1-25集
public class MainTest {

	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("beans2.xml");
		Person bean = context.getBean(Person.class);
		System.out.println("bean = " + bean);
	}

	public static void test01(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");
		Person bean = context.getBean(Person.class);
		System.out.println("bean = " + bean);
	}
}
